// src/main/java/cn/luowb/checkchat/common/errorcode/MediaErrorCode.java
package cn.luowb.checkchat.common.errorcode;

/**
 * 媒体相关错误码
 */
public enum MediaErrorCode implements IErrorCode {

    FILE_TOO_LARGE("A000121", "文件大小不能超过50MB"),
    UNSUPPORTED_FILE_TYPE("A000122", "不支持的文件类型"),
    FILE_EMPTY("A000123", "文件不能为空");

    private final String code;
    private final String message;

    MediaErrorCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String code() {
        return code;
    }

    @Override
    public String message() {
        return message;
    }
}